package com.beizhen.demo.controller;

import com.alibaba.fastjson.JSONArray;
import com.beizhen.demo.entity.ZhuVo;
import com.beizhen.demo.service.StuTripPlanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;
import java.util.Map;

@Controller
@RequestMapping("/t")
public class test {
    @Autowired
    private StuTripPlanService stuTripPlanService;
    @RequestMapping("/test")
    public String test(){
        System.out.println("a");
        return "ttt";
    }
    @RequestMapping("/tes")
    public String tes(){
        System.out.println("a");
        return "school/school_studies_achievement_wonderful";
    }
    @RequestMapping("/te")
    public String te(Map<String,Object> map){
        String schoolUId="1";

        Integer people=stuTripPlanService.getPeople(schoolUId);
        Integer teahNum=stuTripPlanService.getTeacher(schoolUId);
        Integer baseCount=stuTripPlanService.getBid(schoolUId);
        Integer planNum=stuTripPlanService.getPlan(schoolUId);
        map.put("planNum",planNum);
        map.put("people",people);
        map.put("teahNum",teahNum);
        map.put("baseCount",baseCount);
        return "school/school_semester_studies_plan";
    }
}
